home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / btfl144.zip / POL.INX < prev    next >
Text File  |  1992-08-21  |  4KB  |  126 lines

  1. #
  2. #  This line, and all lines beginning with '#' are comments
  3. #
  4. #  This file will allow you to import and export data from Btrieve
  5. #  files in a variety of ways.  Since you define what fields are in
  6. #  or should be written to the ASCII comma delimited file, you can
  7. #  do some pretty neat stuff, like eliminating fields from data
  8. #  files by exporting only what you really want and importing to a
  9. #  new file the selected fields.
  10. #
  11. #  The format of the information for each field is as follows:
  12. #
  13. #  FIELD NAME=s
  14. #  BTRIEVE START=n
  15. #  BTRIEVE LEN=n
  16. #  FIELD TYPE=s
  17. #  ASCII LEN=n
  18. #  ASCII DECIMALS=n
  19. #
  20. #  'FIELD NAME' is essentially a comment for now.
  21. #
  22. #  'BTRIEVE START' is the position within the Btrieve file where
  23. #  this field is (or in the case of import, where the data should
  24. #  go).  The first position in the file is 1.
  25. #
  26. #  'BTRIEVE LEN' is the length of the field in the Btrieve fle in
  27. #  it's native format.  Note, for instance, that Btrieve DATE fields
  28. #  are 4 bytes.
  29. #
  30. #  'FIELD TYPE' is one of the following:
  31. #
  32. #                              "String"
  33. #                              "Integer"
  34. #                              "Float"
  35. #                              "Date"
  36. #                              "Time"
  37. #                              "Decimal"
  38. #                              "Money"
  39. #                              "Logical"
  40. #                              "Numeric"
  41. #                              "Bfloat"
  42. #                              "Lstring"
  43. #                              "Zstring"
  44. #                              "Unsigned Binary"
  45. #                              "Autoincrement"
  46. #                              "Pascal Real"
  47. #
  48. #  NOTE:  Only meaningful for IMPORT is a fieldtype of IGNORE.  What this
  49. #         does is ignore the field in the ASCII comma-delimited file.  This
  50. #         allows you to import files that have fields that you do not wish
  51. #         to import.
  52. #
  53. #  ASCII LEN' is the length the field should take in the ASCII
  54. #  file.
  55. #
  56. #  ASCII DECIMALS is only meaningful for numbers.  N/A if it does not apply.
  57. #
  58. #  The ASCII output file will look something like this:
  59. #
  60. #  "Jones      ","Bob        ","404 Midstreams Road","Brick","NJ","08724"
  61. #
  62. #  In the above case, the first 5 fields might have been STRING fields,
  63. #  and the last field might have been Numeric, Decimal, or Integer.
  64. #
  65. #  Field 1
  66. #
  67. FIELD NAME=POL-PO Num
  68. BTRIEVE START=1
  69. BTRIEVE LEN=6
  70. FIELD TYPE=string
  71. ASCII LEN=6
  72. ASCII DECIMALS=N/A
  73. #
  74. #  Field 2
  75. #
  76. FIELD NAME=POL-Sequence
  77. BTRIEVE START=7
  78. BTRIEVE LEN=3
  79. FIELD TYPE=string
  80. ASCII LEN=3
  81. ASCII DECIMALS=N/A
  82. #
  83. #  Field 3
  84. #
  85. FIELD NAME=POL-SKU
  86. BTRIEVE START=10
  87. BTRIEVE LEN=7
  88. FIELD TYPE=string
  89. ASCII LEN=7
  90. ASCII DECIMALS=N/A
  91. #
  92. #  Field 4
  93. #
  94. FIELD NAME=POL-Unit Retail
  95. BTRIEVE START=17
  96. BTRIEVE LEN=5
  97. FIELD TYPE=decimal
  98. ASCII LEN=10
  99. ASCII DECIMALS=2
  100. #
  101. #  Field 5
  102. #
  103. FIELD NAME=POL-Cost
  104. BTRIEVE START=22
  105. BTRIEVE LEN=5
  106. FIELD TYPE=decimal
  107. ASCII LEN=10
  108. ASCII DECIMALS=2
  109. #
  110. #  Field 6
  111. #
  112. FIELD NAME=POL-Ord Qty
  113. BTRIEVE START=93
  114. BTRIEVE LEN=4
  115. FIELD TYPE=decimal
  116. ASCII LEN=10
  117. ASCII DECIMALS=0
  118. #
  119. #  This is just a demo.  Lots of fields follow, we just
  120. #     picked these to extract.  Note that field 6 is not
  121. #     adjacent to field 5.  The order that the fields are
  122. #     defined dictates their order in the export file, or
  123. #     in the case of imports, the fields must be defined in
  124. #     the order the fields appear in the import file.
  125. #
  126.